package cn.elwy.rcp.ui.table.listener;

import org.eclipse.jface.viewers.DoubleClickEvent;
import org.eclipse.jface.viewers.IDoubleClickListener;

import cn.elwy.rcp.ui.table.TablePane;

public class TablePaneDoubleClickListener implements IDoubleClickListener {

  protected TablePane tablePane;

  @Override
  public void doubleClick(DoubleClickEvent event) {
    if (tablePane == null) {
      return;
    }
    doubleClickProcess(event);
  }

  protected void doubleClickProcess(DoubleClickEvent event) {
  }

  public void setTablePane(TablePane tablePane) {
    this.tablePane = tablePane;
  }

  public void dispose() {
    tablePane = null;
  }
}
